﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Entity.ModelConfiguration; 
using System.ComponentModel.DataAnnotations;
using Wedo.Recognition.Domain.Models;
using Wedo.Domain.Models;

namespace Wedo.Recognition.Domain.Mapping
{
    public class UserInfo_Mapping:EntityConfiguration<UserInfo>
    {
        public UserInfo_Mapping()
        {
            ToTable("UserInfoes");

            Property(s => s.Name).HasMaxLength(50).HasColumnType("varchar");
            Property(s => s.StaffCode).HasMaxLength(50).HasColumnType("varchar");
            Property(s => s.StaffNameCN).HasMaxLength(50).HasColumnType("nvarchar");

            Property(s => s.CompanyNo).HasMaxLength(50).HasColumnType("varchar");
            Property(s => s.CostCenter).HasMaxLength(50).HasColumnType("varchar");
            Property(s => s.StaffNameEN).HasMaxLength(50).HasColumnType("nvarchar");

            Property(s => s.Department).HasMaxLength(50).HasColumnType("varchar");
            Property(s => s.Exter_Email).HasMaxLength(50).HasColumnType("nvarchar");

            Property(s => s.Gender).HasMaxLength(50).HasColumnType("varchar");
            Property(s => s.WorkCenter).HasMaxLength(500).HasColumnType("varchar");
            Property(s => s.Password).HasMaxLength(50).HasColumnType("varchar");
            Property(s => s.Phone).HasMaxLength(500).HasColumnType("varchar");
        }
    }

}
